# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=wob
pkgver=0.8
pkgrel=0
pkgdesc="A lightweight overlay volume/backlight/progress/anything bar for Wayland."
url="https://github.com/francma/wob"
arch="all"
license="ISC"
makedepends="meson git wayland-protocols wayland-dev scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/francma/wob/archive/$pkgver.tar.gz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		build-release
	ninja -C build-release
}

check() {
	ninja -C build-release test
}

package() {
	DESTDIR="$pkgdir" ninja -C build-release install
}
sha512sums="2ff525db1f2eb3e93def8d0c052ff7ba348acfa5f396b6f958754ed1f760e54d14ea140bdc4c6d2daa0cdc3a3ec3efe027cd5cad7f56b5b11d50b51ed7ca2924  wob-0.8.tar.gz"
